home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crosscountry USA Photo Safari
/
Crosscountry USA Photo Safari.iso
/
Data
/
safari_usa
/
pak00_16bit_f.pk3
/
tutorial
/
tutorial.gl.p
Wrap
Text File
|
2004-01-21
|
4KB
|
119 lines
{
ChildID = {
GuiAnimation("background") {
AnimationID = "tutorial/image/background.jpg";
X = 0;
Y = 0;
},
GuiButton("prev_button") {
X = 350;
Y = 442;
TextID = Mangle(65634/*"Back"*/);
StyleID = "gui/bs/square.gbs";
FontID = "font/square_black_on_gray_9.tf";
Width = 120;
AutoSize = HEIGHT;
ScriptID = Script {
@activate {
if (CVarGetInt("cur_step") == 1) {
stop;
}
CVarSetInt("cur_step",CVarGetInt("cur_step") - 1);
ResParseEvent(GuiSiblingByName("step"),"@narrate");
}
};
},
GuiButton("next_button") {
X = 480;
Y = 442;
TextID = Mangle(65609/*"Next"*/);
StyleID = "gui/bs/square.gbs";
FontID = "font/square_black_on_gray_9.tf";
Width = 120;
AutoSize = HEIGHT;
ScriptID = Script {
@activate {
if (CVarGetInt("cur_step") == 10) {
stop;
}
CVarSetInt("cur_step",CVarGetInt("cur_step") + 1);
ResParseEvent(GuiSiblingByName("step"),"@narrate");
}
};
},
GuiAnimation("step") {
AnimationID = "tutorial/image/step_1.jpg";
X = 87;
Y = 41;
ScriptID = Script {
@loaded {
CVarSetInt("cur_step",1);
ResParseEvent(SELF,"@narrate");
}
@narrate {
if (CVarGetInt("cur_step") == 1) {
ResPropSetInt(GuiSiblingByName("prev_button"),"Hidden",TRUE);
} else {
ResPropSetInt(GuiSiblingByName("prev_button"),"Hidden",FALSE);
}
if (CVarGetInt("cur_step") == 10) {
ResPropSetInt(GuiSiblingByName("next_button"),"Hidden",TRUE);
} else {
ResPropSetInt(GuiSiblingByName("next_button"),"Hidden",FALSE);
}
ResPropSetResID(GuiSiblingByName("step"),"AnimationID",ResByName(StrFormatStr("tutorial/image/step_%d.jpg",CVarGetInt("cur_step"))));
AudioStop(CVarGetInt("tutorial_sound_id"));
CVarSetInt("tutorial_sound_id", AudioPlay(ResByName(StrFormatStr("tutorial/sound/step_%d.wav",CVarGetInt("cur_step")))));
}
};
},
GuiAnimation("frog") {
AnimationID = "tutorial/frog_talking/frog.anm";
X = 0;
Y = 411;
ScriptID = Script {
@animate {
resid Talking;
resid Waiting;
Talking = ResByName("tutorial/frog_talking/frog.anm");
Waiting = ResByName("tutorial/frog_waiting/frog.anm");
if (AudioIsPlaying(CVarGetInt("tutorial_sound_id"))) {
if (ResPropGetResID(SELF,"AnimationID") != Talking) {
ResPropSetResID(SELF,"AnimationID",Talking);
}
} else {
if (ResPropGetResID(SELF,"AnimationID") != Waiting) {
ResPropSetResID(SELF,"AnimationID",Waiting);
}
}
}
};
},
GuiButton("main_menu_button") {
X = 100;
Y = 442;
TextID = Mangle(65610/*"Main Menu"*/);
StyleID = "gui/bs/square.gbs";
FontID = "font/square_black_on_gray_9.tf";
Width = 160;
AutoSize = HEIGHT;
ScriptID = Script {
@activate {
release("floor");
mark("floor");
ResByName("splash_screen.gl");
}
};
}
};
}